CHORUS_SRC=/vob/chorus_src/4.0.1/chorus-src/src
DEST_DIR=/home/leilewan # your destination directory 

CHORUS_NUCLEUS=$(CHORUS_SRC)/nucleus/sys
CHORUS_NUCLEUS_COMMON=$(CHORUS_NUCLEUS)/common
CHORUS_NUCLEUS_PPC=$(CHORUS_NUCLEUS)/powerpc
CHORUS_NUCLEUS_PPC60X=$(CHORUS_NUCLEUS)/ppc60x
CHORUS_NUCLEUS_E500=$(CHORUS_NUCLEUS)/e500
CHORUS_NUCLEUS_MPC8260=$(CHORUS_NUCLEUS)/mpc8260

CHORUS_OS=$(CHORUS_SRC)/os
CHORUS_OS_COMMON=$(CHORUS_OS)/common
CHORUS_OS_PPC=$(CHORUS_OS)/powerpc
CHORUS_OS_E500=$(CHORUS_OS)/e500
CHORUS_OS_MPC8260=$(CHORUS_OS)/mpc8260
CHORUS_OS_PPC60X=$(CHORUS_OS)/ppc60x

CHORUS_IOM=$(CHORUS_SRC)/iom

CHORUS_DRV=$(CHORUS_SRC)/nucleus/bsp/drv/src

CHORUS_DRV_F=$(CHORUS_SRC)/nucleus/bsp/powerpc/drv_f

CHORUS_BSP=$(CHORUS_SRC)/nucleus/bsp/powerpc
CHORUS_BSP_SWP8560=$(CHORUS_BSP)/swp8560/
CHORUS_BSP_SWP8260=$(CHORUS_BSP)/swp8260/

PIU=/vob/piu/

update_all:update_piu update_chorus

update_piu:
	@echo ------------update PIU-----------------
	cp -rvfub --parents $(PIU) $(DEST_DIR)

update_chorus:update_chorus_bsp
	@echo ------------update CHORUS_NUCLEUS_COMMON-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_COMMON) $(DEST_DIR)
	@echo ------------update CHORUS_NUCLEUS_PPC60X-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_PPC60X) $(DEST_DIR)
	@echo ------------update CHORUS_NUCLEUS_PPC-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_PPC) $(DEST_DIR)
	@echo ------------update CHORUS_NUCLEUS_MPC8260-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_MPC8260) $(DEST_DIR)
	@echo ------------update CHORUS_NUCLEUS_E500-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_E500) $(DEST_DIR)
	@echo ------------update CHORUS_OS_COMMON-----------------
	cp -rvfub --parents $(CHORUS_OS_COMMON) $(DEST_DIR)
	cp -rvfub --parents $(CHORUS_OS)/Makefile.* $(DEST_DIR)
	cp -rvfub --parents $(CHORUS_OS)/Ident $(DEST_DIR)
	@echo ------------update CHORUS_OS_PPC60X-----------------
	cp -rvfub --parents $(CHORUS_OS_PPC60X) $(DEST_DIR)
	@echo ------------update CHORUS_OS_PPC-----------------
	cp -rvfub --parents $(CHORUS_OS_PPC) $(DEST_DIR)
	@echo ------------update CHORUS_OS_MPC8260---------------
	cp -rvfub --parents $(CHORUS_OS_MPC8260) $(DEST_DIR)
	@echo ------------update CHORUS_OS_E500---------------
	cp -rvfub --parents $(CHORUS_OS_E500) $(DEST_DIR)
	@echo ------------update CHORUS_IOM-----------------
	cp -rvfub --parents $(CHORUS_IOM) $(DEST_DIR)
	@echo ------------update CHORUS_DRV-----------------
	cp -rvfub --parents $(CHORUS_DRV) $(DEST_DIR)
	@echo ------------update CHORUS_DRV_F-----------------
	cp -rvfub --parents $(CHORUS_DRV_F) $(DEST_DIR)

update_chorus_bsp:
	@echo ------------update CHORUS_BSP_SWP8560-----------------
	cp -rvfub --parents $(CHORUS_BSP_SWP8560) $(DEST_DIR)
	cp -rvfub --parent $(CHORUS_BSP)/Makefile.* $(DEST_DIR)
	cp -rvfub --parent $(CHORUS_BSP)/Ident $(DEST_DIR)
	cp -rvfub --parent $(CHORUS_BSP)/family.xml $(DEST_DIR)
	@echo ------------update CHORUS_BSP_SWP8260-----------------
	cp -rvfub --parents $(CHORUS_BSP_SWP8260) $(DEST_DIR)

update_chorus_nucleus:
	@echo ------------update CHORUS_NUCLEUS-----------------
	cp -rvfub --parents $(CHORUS_NUCLEUS) $(DEST_DIR)
	@echo ------------update CHORUS_NUCLEUS_PROFILE-------------
	cp -rvfub --parents $(CHORUS_NUCLEUS_PROFILE) $(DEST_DIR)
	@echo ------------update CHORUS_OS-------------
	cp -rvfub --parents $(CHORUS_OS) $(DEST_DIR)
	@echo ------------update CHORUS_OS_PPC60X-------------
	cp -rvfub --parents $(CHORUS_OS_PPC60X) $(DEST_DIR)
	@echo ------------update CHORUS_OS_PPC-------------
	cp -rvfub --parents $(CHORUS_OS_PPC) $(DEST_DIR)
	
	
